package homework.employee;

public class Manager extends SalaryEmployee{
    private double bonusRate;

    public double getBonusRate() {
        return bonusRate;
    }

    public void setBonusRate(double bonusRate) {
        this.bonusRate = bonusRate;
    }

    @Override
    public double earning() {
        return super.getSalary() * (1 + bonusRate);
    }

    @Override
    public String getInfo() {
        return super.getName()+"的实发工资为"+earning()+"元,该员工的生日为："+super.getBirthdate().getInfo()+",奖金比例为"+bonusRate;
    }
}
